package su.jiedai.dto;


import net.kuakao.core.base.util.SystemUtils;
import net.kuakao.core.dto.PagerDTO;

import org.springframework.web.multipart.MultipartFile;

import su.jiedai.entity.JiedaiEntity;
public class JiedaiDto extends PagerDTO {
	/** 借货类型，借 */
	public final static int JIEDAI_TYPE_JIE = 1;
	/** 借货类型，货 */
	public final static int JIEDAI_TYPE_DAI = 2;
	/** 借货类型，平 */
	public final static int JIEDAI_TYPE_PING = 3;
	/** 数据状态，有效 */
	public final static int JIEDAI_STATUS_ENABLE = 1;
	/** 数据状态，删除 */
	public final static int JIEDAI_STATUS_REMOVE = 0;
	
	/* ID */
	private String  id;
			
			
	/* 日期 */
	private String  jdDate;
			
			
	/* 凭证字号 */
	private String  jdKey;
			
			
	/* 摘要 */
	private String  jdDesc;
			
			
	/* 业务编号 */
	private String  jdCode;
			
			
	/* 余额方向,1借2贷3平 */
	private String  jdType;
			
			
	/* 借方本位币金额 */
	private String  jdAmountJie;
	
	/* 贷方本位币金额 */
	private String  jdAmountDai;

	/* 上年结转金额 */
	private String  jdAmountJiezhuan;
			
			
	/* 创建时间 */
	private String  jdCreateTime;
			
			
	/* 状态，1有效，0删除 */
	private String  jdStatus;
			
	/* 要导入的Excel文件 */			
	private MultipartFile importExcelFile;

	

	public String getJdAmountJiezhuan() {
		return jdAmountJiezhuan;
	}



	public void setJdAmountJiezhuan(String jdAmountJiezhuan) {
		this.jdAmountJiezhuan = jdAmountJiezhuan;
	}



	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}



	public String getJdDate() {
		return jdDate;
	}



	public void setJdDate(String jdDate) {
		this.jdDate = jdDate;
	}



	public String getJdKey() {
		return jdKey;
	}



	public void setJdKey(String jdKey) {
		this.jdKey = jdKey;
	}



	public String getJdDesc() {
		return jdDesc;
	}



	public void setJdDesc(String jdDesc) {
		this.jdDesc = jdDesc;
	}



	public String getJdCode() {
		return jdCode;
	}



	public void setJdCode(String jdCode) {
		this.jdCode = jdCode;
	}



	public String getJdType() {
		return jdType;
	}



	public void setJdType(String jdType) {
		this.jdType = jdType;
	}



	public String getJdAmountJie() {
		return jdAmountJie;
	}



	public void setJdAmountJie(String jdAmountJie) {
		this.jdAmountJie = jdAmountJie;
	}



	public String getJdAmountDai() {
		return jdAmountDai;
	}



	public void setJdAmountDai(String jdAmountDai) {
		this.jdAmountDai = jdAmountDai;
	}



	public String getJdCreateTime() {
		return jdCreateTime;
	}



	public void setJdCreateTime(String jdCreateTime) {
		this.jdCreateTime = jdCreateTime;
	}



	public String getJdStatus() {
		return jdStatus;
	}



	public void setJdStatus(String jdStatus) {
		this.jdStatus = jdStatus;
	}



	public MultipartFile getImportExcelFile() {
		return importExcelFile;
	}



	public void setImportExcelFile(MultipartFile importExcelFile) {
		this.importExcelFile = importExcelFile;
	}



	public JiedaiEntity toJiedaiEntity() {
		JiedaiEntity jiedaiEntity = new JiedaiEntity();
		jiedaiEntity.setId(SystemUtils.strToInt(this.id));
		
		jiedaiEntity.setJdDate(SystemUtils.strToDate(this.getJdDate(), "yyyy-MM-dd"));
		
		jiedaiEntity.setJdKey(this.getJdKey());
		
		jiedaiEntity.setJdDesc(this.getJdDesc());
		
		jiedaiEntity.setJdCode(this.getJdCode());
		
		jiedaiEntity.setJdType(SystemUtils.strToInt(this.jdType));
		
		jiedaiEntity.setJdAmountJie(SystemUtils.strToDouble(this.jdAmountJie));
		
		jiedaiEntity.setJdAmountDai(SystemUtils.strToDouble(this.jdAmountDai));

		jiedaiEntity.setJdAmountJiezhuan(SystemUtils.strToDouble(this.jdAmountJiezhuan));
		
		jiedaiEntity.setJdCreateTime(SystemUtils.strToDate(this.jdCreateTime,"yyyy-MM-dd HH:mm:ss"));
		
		jiedaiEntity.setJdStatus(SystemUtils.strToInt(this.jdStatus));
		
		return jiedaiEntity;
	}
}

